The version of gcc (4.9.2) I use put constructors into .init_array*
section(s). Collect those sections into constructor list as well.
Modify both arm and x86 scripts to keep them in sync.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Julien Grall <julien.grall@arm.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
. = ALIGN(8);
__ctors_start = .;
+ *(.ctors)
*(.init_array)
+ *(SORT(.init_array.*))
__ctors_end = .;
} :text
__init_end_efi = .;
. = ALIGN(8);
__ctors_start = .;
*(.ctors)
+ *(.init_array)
+ *(SORT(.init_array.*))
__ctors_end = .;
} :text